﻿using Common.Communal;
using ERP.Domain.CustomerSupplier;
using ERP.Domain.SalesManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sell.Services.Contracts
{
    public interface IContractServices
    {
       /// <summary>
       /// 采购合同添加
       /// </summary>
       /// <param name="contract"></param>
       /// <returns></returns>
        Task<ApiResult<int>> AddContract(Contract contract);
       /// <summary>
       /// 修改采购合同
       /// </summary>
       /// <param name="contract"></param>
       /// <returns></returns>
        Task<ApiResult<int>> UpdateContract(Contract contract);
       /// <summary>
       /// 删除采购合同
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
        Task<ApiResult<int>> DeleteContract(int id);
        /// <summary>
        /// 修改审核状态
        /// </summary>
        /// <param name="id">合同ID</param>
        /// <param name="reviewStatus">审核状态 (0-未审核, 1-已审核)</param>
        /// <returns></returns>
        Task<ApiResult<int>> UpdateReviewStatus(int id, int reviewStatus);
    }
}
